<?php
//配置模板，注意，可以增加修改配置键，不要直接修改此文件配置值,里面的值只是默认值，真实值保存在数据库

/**
 * 签到配置
 */

use tpext\builder\common\Form;

return [
    'background' => '/assets/images/sign-bg.png',
    'rule' => '签到规则',
    'day1' => 1,
    'day2' => 2,
    'day3' => 3,
    'day4' => 4,
    'day5' => 5,
    'day6' => 6,
    'day7' => 7,
    'is_open_sign' => false,
    'is_open_ad' => false,
    'video_url' => '',

    //配置描述
    '__config__' => function (Form $form) {
        $form->tab('赠送金额', 1);
        $form->switchBtn('is_open_sign', '开启签到')->default(false);
        $form->switchBtn('is_open_ad', '开启第三方广告')->default(false);
        $form->text('day1', '第一天')->required();
        $form->text('day2', '第二天')->required();
        $form->text('day3', '第三天')->required();
        $form->text('day4', '第四天')->required();
        $form->text('day5', '第五天')->required();
        $form->text('day6', '第六天')->required();
        $form->text('day7', '第七天')->required();
        $form->image('background', '背景图')->required();
        $form->multipleFile('video_url', '播放视频')->help('未开启第三方广告时有效，播放一段视频，如果上传多个视频则会在签到页面随机播放！')->video();
        $form->editor('rule', '签到规则说明')->required();
    },
];
